﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace GMS
{
    public partial class Pages_Admin_StoneTypeCategory : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!SessionVariable.Instance.UserDetails.IsAdmin)
            {
                Response.Redirect("Login.aspx");
            }
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Common.AddStoneTypeCategory(txtImagePath.Text, Convert.ToInt32(ddlStoneType.SelectedItem.Value), Convert.ToInt32(ddlStoneCategory.SelectedItem.Value));
            gvStoneTypeCategory.DataBind();

            txtImagePath.Text = string.Empty;
         
        }
    }
}